<%@ taglib uri="http://liferay.com/tld/util" prefix="liferay-util" %>

<%@ page import="com.liferay.portal.kernel.servlet.HttpHeaders" %>
<%@ page import="com.liferay.portal.kernel.util.ContentTypes" %>
<%@ page import="com.liferay.portal.kernel.util.ParamUtil" %>
<%@ page import="com.liferay.portal.model.Theme" %>
<%@ page import="com.liferay.portal.service.ThemeLocalServiceUtil" %>
<%@ page import="com.liferay.portal.util.PortalUtil" %>

<%
long companyId = PortalUtil.getCompanyId(request);

String themeId = ParamUtil.getString(request, "themeId");

Theme theme = ThemeLocalServiceUtil.getTheme(companyId, themeId, false);

String themeContextPath = PortalUtil.getPathContext();

if (theme.isWARFile()) {
	themeContextPath = theme.getContextPath();
}

String cdnHost = PortalUtil.getCDNHost(request.isSecure());

String themeImagesPath = cdnHost + themeContextPath + theme.getImagesPath();

response.addHeader(HttpHeaders.CONTENT_TYPE, ContentTypes.TEXT_CSS);
%>


.newslist {
}

.newslist .entry {
	margin: 4px 0px 1.2em;
	padding-bottom: 0.5em;
}

.newslist .entry.last {
}

.newslist .entry-title {
	display: block;
	margin-bottom: 0;
	position: relative;
}

.newslist .read-entries .entry-title {
	opacity: 0.5;
}

.newslist .read .entry-title {
}

.newslist .entry-content {
	display: block;
	margin-bottom: 0.5em;
	padding: 2px 2px 2px 30px;
}

.newslist .entry-scope {
	color: #555;
	display: block;
}

.newslist .edit-actions {
	font-size: 0.7em;
	font-weight: normal;
	position: absolute;
	right: 0;
	top: 0;
}

.newslist .delete-entry {
	padding-right: 2em;
}

.newslist .entry-news {
	background: #fff url('<%= themeImagesPath %>/common/page.png') 4px 4px no-repeat;
}
